//
//  KeyPiontTableViewCell.swift
//  DriverSchoolAPP
//
//  Created by Logel on 2017/5/11.
//  Copyright © 2017年 Logel. All rights reserved.
//

import UIKit

class KeyPiontTableViewCell: UITableViewCell {

    @IBOutlet weak var titleLbl: UILabel!
    @IBOutlet weak var desception: UILabel!
    var indexNum = 0

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
//        switch indexNum {
//        case 0:
//            textLabel?.text = "1.合格标准"
//            desception.text = "考试内容以及合格标准"
//        case 1:
//            textLabel?.text = "2.扣分细则"
//            desception.text = "考试内容以及合格标准"
//        case 2:
//            textLabel?.text = "3.合格标准"
//            desception.text = "考试内容以及合格标准"
//        default:
//            break
//        }
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    var inum:Int!{
        didSet{
            switch inum {
            case 0:
                titleLbl?.text = "1.合格标准"
                desception.text = "考试内容以及合格标准"
            case 1:
                titleLbl?.text = "2.扣分细则"
                desception.text = "2017交规扣分标准"
            case 2:
                titleLbl?.text = "3.手势口诀"
                desception.text = "八种交警手势信号口诀"
            default:
                break
            }

        }
    }
}
